package cn.sdack.go.users.dao;

import cn.sdack.go.common.entities.users.GroupEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author sdack
 * @date 2024/1/10
 */
public interface GroupDao extends JpaRepository<GroupEntity,Long> {

    Long countByDelIsNull();

    Long findAllByName(String String);

    List<GroupEntity> findAllByPrincipal(String principal);
}
